package choux_dayinji;

/**
 * Create by IntelliJ IDEA
 *
 * @author: jsonor
 * @date-Time: 2018/4/13 10:30
 * @description:
 */
public class Manger {

public   Printer get(int a)
{
  Printer p=null;
  if(a==0)
  {
    p=new HP_print();
  }
  else  if(a==1)
  {
    p=new Cp_printer();

  }
  else
  {
    System.out.println("输入有误");
  }
  return  p;

}



}
